function getLoginStatus() {
    $.ajax({
        type: 'get',
        url: 'login',
        success: function(body){
            console.log("用户已经登录");
        },
        error: function(body){
            location.assign("blog.html"); 
        }
    });
}